<%@ include file="include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Insert title here</title>
		<script>
		function init(){
			var iframe=parent.window.document.getElementById('bodyFrame');
			if (iframe!=null){
				iframe.setAttribute('height',getComputedStyle(document.body.parentNode).height);
			}
		}
		</script>
	</head>
	<body style="margin:0;padding:0;" onload="init()">
		<%String usr= (String)session.getAttribute("usr");
		if (usr!=null&&usr.equals("benutzer")||true){
		%>	<div id="filterDiv" align="center">
				<iframe id="filterFrame" width="100%" height="180px" src="<%=dbmode%>SearchApp?searchFor=prepare" frameborder="0" scrolling="no" style="margin:0px;"></iframe>
			</div>
			<div id="resultDiv" align="center">
				<iframe id="resultFrame" name="resultFrame" width="100%" height="1400px" src="" frameborder="0" scrolling="no"></iframe>
			</div>
		<% 
		}%>
	</body>
</html>
